{% extends "layout.html" %}
{% block body %}
<h1>list</h1>
<table class="table table-bordered">
	<thead>
		<tr>
			<th>#</th>
			<th>Title</th>
			<th>Action</th>
		</tr>
	</thead>
	<tbody>
		
		{% for entry in entries %}
			<tr>
				<td>{{ entry.id }}</td>
				<td><a href="/retrieve/{{ entry.id }}" class="link">{{ entry.title }}</a></td>
				<td><a href="/update/{{ entry.id }}" class="btn">update</a></td>
			</tr>
		{% else %}
			<tr>
				<td colspan="3">Unbelievable.  No entries here so far</td>
			</tr>
		{% endfor %}
  
	</tbody>
</table>
<a href="/create" class="btn btn-primary">create</a>

{% endblock %}
